<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="Content-Language" content="UTF-8">
</head>

<body style="background: #FFFFFF;height: 100%;" id="main">
    <!-- <div style="width:400px;margin:auto;margin-top:150px;">
        该会议已不存在，请&nbsp;<a id="jump" style="color: #1e94da; text-decoration: underline;cursor: pointer;">点击这里</a>&nbsp;跳转到会议管理首页
    </div> -->
</body>
<script>
    function t(text) {
        if (window.__i18n__) {
            try {
                var json = window.__i18n__.resources[window.__i18n__.locale]['translation']
                return json[text]
            } catch (err) { }
        } else {
            return text
        }
    }
    document.title = t(window.__COMPANY_INFO_i18n_key.title)
    window.onload = function () {
        var htmlStr = '<div style="width:400px;margin:auto;margin-top:150px;">' +
            t('该会议已不存在，请') +
            '&nbsp;<a id="jump" style="color: #1e94da; text-decoration: underline;cursor: pointer;">' + t('点击这里') +
            '</a>&nbsp;' + t('跳转到会议管理首页') +
            '</div>'
        document.getElementById('main').innerHTML = htmlStr

        document.getElementById('jump').addEventListener('click', function () {
            var system_url = window.location.pathname.indexOf('/meetingCore') > -1 ?
                '/meetingapicoreweb' : '/meetingapiweb';

            var _tmp = new window.XMLHttpRequest()
            var url = system_url + "/open_url"
            _tmp.open('GET', url, false)
            _tmp.onreadystatechange = function () {
                var preUrl = '/meeting';
                if (_tmp.readyState === 4 && _tmp.status === 200) {
                    try {
                        var res = JSON.parse(_tmp.responseText)
                        if (res.success) {
                            preUrl = res.data;
                        }
                        window.location = preUrl + '/index.html'

                    } catch (e) {
                        window.location = preUrl + '/index.html'
                    }
                } else {
                    window.location = preUrl + '/index.html'
                }
            }
            _tmp.send(null)
        })
    }
</script>

</html>
